﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CustomerOrderingSystem
{
    public partial class Main : Form
    {
        public static CustomerInfo customerForm;
        public static Purchase purchaseForm;
        public static OrderStatus orderstatusForm;
        public static Invoice invoiceForm;
        public static Goods goodsForm;
        public static Supply supplyForm;
        public static Stock stockForm;
        public static Warehousing warehousingForm;
        public static Exwarehouse exwarehouseForm;
        public Main()
        {
            InitializeComponent();
            customerForm = new CustomerInfo();
            purchaseForm = new Purchase();
            orderstatusForm = new OrderStatus();
            invoiceForm = new Invoice();
            goodsForm = new Goods();
            supplyForm = new Supply();
            stockForm = new Stock();
            warehousingForm = new Warehousing();
            exwarehouseForm = new Exwarehouse();
        }

        private void Main_Load(object sender, EventArgs e)
        {

        }

        private void 客户信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Main.customerForm.Show();
        }

        private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void 采购措施ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Main.purchaseForm.Show();
        }

        private void 订单情况ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Main.orderstatusForm.Show();
        }

        private void 发票信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Main.invoiceForm.Show();
        }

        private void 商品信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Main.goodsForm.Show();
        }

        private void 供应商信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Main.supplyForm.Show();
        }

        private void 库存情况ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Main.stockForm.Show();
        }

        private void 入库信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Main.warehousingForm.Show();
        }

        private void 出库信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Main.exwarehouseForm.Show();
        }
    }
}
